import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/login.vue'
import Signup from '../views/signup.vue'
import Forgetpass from '../views/forgetpassword.vue'
import Checkuser from '../views/checkuser.vue'
import Menu from '../views/menu.vue'

Vue.use(VueRouter)

const routes = [
  {
	  path: '/',
	  name: 'Login',
	  component: Login
  },
  {
	  path: '/signup',
	  name: 'Signup',
	  component: Signup,
  },
  {
	  path: '/checkuser',
	  name: 'Checkuser',
	  component: Checkuser
  },
  {
	  path: '/forgetpass',
	  name: 'ForgetPassword',
	  component: Forgetpass,
  },
  {
	  path: '/menu/:username',
	  name: 'Menu',
	  component: Menu,
  }
]

const router = new VueRouter({
  routes
})

export default router
